package net.cloudsun.graph.puzzle;

/**
 * created at 23/11/2021
 * 修改记录
 * <ol>
 *     <li>2021年11月25日 修改类名</li>
 * </ol>
 * @author 俞建波
 * <a href="mailto://yujianbo@chtwm.com">yujianbo@chtwm.com</a>
 * @since
 */
public enum PuzzleDirection {
    UP, DOWN, LEFT, RIGHT;

    public PuzzleDirection reverse() {
        switch (this) {
            case UP:
                return DOWN;
            case DOWN:
                return UP;
            case LEFT:
                return RIGHT;
            case RIGHT:
                return LEFT;
            default:
                return null;
        }
    }
}
